home *** CD-ROM | disk | FTP | other *** search
- function basic_complete()
- {
- if(activetrack < 5)
- {
- realtrack = Number(activetrack) + 1;
- }
- else
- {
- realtrack = 1;
- }
- basic_playtrack.call();
- }
- function basic_playtrack()
- {
- activealbum = realalbum;
- activetrack = realtrack;
- thestatus.colorfield._x = 175;
- thestream.colorfield._x = 175;
- thesoundclip = new Sound();
- thesoundclip.onLoad = function(success)
- {
- if(!success)
- {
- realtrack = 1;
- basic_playtrack.call();
- }
- };
- thesoundclip.onSoundComplete = basic_complete;
- thesoundclip.loadSound(master_dir add "/track" add realtrack add ".mp3",true);
- playpause.gotoAndStop(1);
- }
- playpause.gotoAndStop(2);
- _soundbuftime = 1;
- status_text = "checking registration";
- thekey = _url.substr(0,length(_url) - 19);
- registration_path = "http://www.visualsteel.net/cgi-bin/diskdriver/diskdriver_mini.cgi";
- registration = new LoadVars();
- registration.thekey = thekey;
- registration.model = 210;
- registration.makelog = true;
- registration.onLoad = function(success)
- {
- if(success)
- {
- if(registration.warning eq true)
- {
- attachMovie("warning","warning",this.getNextHighestDepth(),{_x:63,_y:35});
- }
- if(registration.authorized eq true)
- {
- thevolume = 99;
- activetrack = 1;
- realtrack = 1;
- master_dir = "diskdriver";
- basic_playtrack.call();
- }
- }
- };
- registration.sendAndLoad(registration_path,registration,"POST");
- this.onEnterFrame = function()
- {
- thesoundclip.setVolume(thevolume);
- thestatus.colorfield._x = 175 / thesoundclip.duration * thesoundclip.position;
- thestream.colorfield._x = 175 / thesoundclip.getBytesTotal() * thesoundclip.getBytesLoaded();
- tracktext = "TRACK " add activetrack;
- thesoundclip.onID3 = function()
- {
- songtitle = thesoundclip.id3.songname;
- };
- if(registration.authorized ne true)
- {
- thevolume = 0;
- }
- if(thevolume < 99 and volumeup eq true and registration.authorized eq true)
- {
- thevolume = Number(thevolume) + 1;
- }
- if(thevolume > 0 and volumedown eq true)
- {
- thevolume = Number(thevolume) - 1;
- }
- if(rewind eq true)
- {
- whereisit = thesoundclip.position - thesoundclip.duration / 200;
- thesoundclip.start(whereisit / 1000);
- }
- if(fast eq true)
- {
- whereisit = thesoundclip.position + thesoundclip.duration / 200;
- thesoundclip.start(whereisit / 1000);
- }
- if(getProperty("playpause", _currentframe) eq 1 and thesoundclip.getBytesTotal() / thesoundclip.getBytesLoaded() < 10 and thesoundclip.getBytesTotal > 10 and thesoundclip.position < 1)
- {
- thesoundclip.start();
- }
- if(songtitle ne undefined)
- {
- setProperty("title", _alpha, 0);
- }
- else
- {
- setProperty("title", _alpha, 100);
- }
- };
- trackdown.onRelease = function()
- {
- if(activetrack > 1 and registration.authorized eq true)
- {
- realtrack = Number(activetrack) - 1;
- basic_playtrack.call();
- }
- };
- trackup.onRelease = function()
- {
- if(activetrack < 5 and registration.authorized eq true)
- {
- realtrack = Number(activetrack) + 1;
- basic_playtrack.call();
- }
- };
- volumeup.onPress = function()
- {
- volumeup = true;
- };
- volumeup.onRelease = function()
- {
- volumeup = false;
- };
- volumeup.onReleaseOutside = function()
- {
- volumeup = false;
- };
- volumedown.onPress = function()
- {
- volumedown = true;
- };
- volumedown.onRelease = function()
- {
- volumedown = false;
- };
- volumedown.onReleaseOutside = function()
- {
- volumedown = false;
- };
- rewind.onPress = function()
- {
- playpause.gotoAndStop(1);
- rewind = true;
- };
- rewind.onRelease = function()
- {
- rewind = false;
- thesoundclip.start(thesoundclip.position / 1000);
- };
- rewind.onReleaseOutside = function()
- {
- rewind = false;
- thesoundclip.start(thesoundclip.position / 1000);
- };
- fast.onPress = function()
- {
- playpause.gotoAndStop(1);
- fast = true;
- };
- fast.onRelease = function()
- {
- fast = false;
- thesoundclip.start(thesoundclip.position / 1000);
- };
- fast.onReleaseOutside = function()
- {
- fast = false;
- thesoundclip.start(thesoundclip.position / 1000);
- };
- restart.onPress = function()
- {
- thesoundclip.start(0);
- playpause.gotoAndStop(1);
- };
- volumedown.onRelease = function()
- {
- volumedown = false;
- };
- volumedown.onReleaseOutside = function()
- {
- volumedown = false;
- };
- volumeup.onRelease = function()
- {
- volumeup = false;
- };
- volumeup.onReleaseOutside = function()
- {
- volumeup = false;
- };
- volumeup.onPress = function()
- {
- volumeup = true;
- };
- volumedown.onPress = function()
- {
- volumedown = true;
- };
- logo.onRelease = function()
- {
- getUrl("http://www.visualsteel.net/diskdriver.shtml", "_blank");
- };
- logo.onRollOver = function()
- {
- attachMovie("notice","notice",1000,{_x:5,_y:23});
- };
- logo.onRollOut = function()
- {
- removeMovieClip("notice");
- };
- stop();
-